package org.cll.lagou.study.springbootdemo.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/6/26 23:48
 */
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "author")
@PropertySource("classpath:author.properties")
public class Author {

    private String name;

    private Map<String, String> contact;
}
